<template>
	<view class="container">
		<text class="intro" @click="handleClick">你好！</text>
		<uni-link :href="href" :text="href"></uni-link>
		<view class=" iconfont icon-54">
			<view class=" iconfont icon-fenxiang">
			</view>
		</view>
	</view>
</template>

<script>
	import {getUserProfile,login} from '@/utils/asyncWx.js'
	export default {
		async created() {
					// let result = await this.$request({
					// 	url:"home/swiperdata"
					// });
					// console.log(result);
					// await getUserProfile();
				},
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
			}
		},
		methods: {
	           handleClick: async function() {
				// let res = await getUserProfile();
				let res = await login();
				console.log(res);
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
